﻿using Inovout.Kuajing.Models;
using Inovout.Kuajing.Repositories;
using Inovout.Services;
using NHibernate.Criterion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Kuajing.Services
{
    public class ShipmentOrderItemService : RepositoryService<ShipmentOrderItem>
    {
       
        protected ShipmentOrderItemRepository ShipmentOrderItemRepository
        {
            get { return (ShipmentOrderItemRepository)base.Repository; }
        }

        public IList<ShipmentOrderItem> GetByLogisticsCodeAndStatus(string consigner)
        {
           
           return ShipmentOrderItemRepository.FindByStautsAndConsigner(consigner);
        }

        public IList<ShipmentOrderItem> GetByOrderNoAndConsigner(string consigner,string orderNo)
        {

            return ShipmentOrderItemRepository.FindByOrderNoAndConsigner(consigner, orderNo);
        }
    }
}
